<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>结果</title>
	<!--按调用css图层样式-->
    <link rel="stylesheet" type="text/css" href="phpStyle.css">
</head>
<body>
	<div class="content">
		<?php
			//获取标题和表格信息
			$titletext = isset($_GET['titletext']) ? $_GET['titletext'] : '';
			$message = isset($_GET['message']) ? $_GET['message'] : '';
			//输出标题
			echo "<h2>$titletext</h2>";
			//如果消息是表格形式就显示表格
			if (strpos($message, "<table") !== false) {
				echo $message;
			} else {
				//否则输出消息
				echo "<p>$message</p>";
			}
		?>
		<button onclick="window.location.href='index.html'">返回首页</button>
	</div>
</body>
</html>
